/**
  * @(#) NovelAuthors.java  
  *
  * @author lihg 
  * @version V1.0 2013-10-5  
  *
  * Copyright (C) 2010,2013 , Lihg
  */

/**
 * 
 */
package cn.com.dshome.acquisition.entity.novel;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import cn.com.dshome.acquisition.entity.BaseEntity;

/**
 * 
 * Purpose:作者表
 * 
 * @author lihg 
 * @see	    
 * @since
 */
@Entity
@Table(name = "DSHOME_NOVEL_AUTHORS")
public class NovelAuthors extends BaseEntity {

	private static final long serialVersionUID = 978039793193126512L;
	
	/**
	 * 名称
	 */
	@Column(name = "name" , length = 64 , unique = true)
	private String name ;
	
	/**
	 * 描述
	 */
	@Column(name = "description" , length = 256)
	private String description ;
	
	/**
	 * 备注
	 */
	@Column(name = "remark" , length = 256)
	private String remark ;

	/**
	 * 文章列表
	 */
	@OneToMany(mappedBy = "author" , fetch = FetchType.LAZY)
	private Set<NovelArticles> articleSet  = new HashSet<NovelArticles>();
	
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}

	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @return the articleSet
	 */
	public Set<NovelArticles> getArticleSet() {
		return articleSet;
	}

	/**
	 * @param articleSet the articleSet to set
	 */
	public void setArticleSet(Set<NovelArticles> articleSet) {
		this.articleSet = articleSet;
	}
}


/**
 * Revision history
 * -------------------------------------------------------------------------
 * 
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2013-10-5 下午12:37:11 lihg 创建版本
 */